package com.zhouchao.register.watcher;

import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.api.CuratorWatcher;
import org.apache.zookeeper.WatchedEvent;

/**
 * @Author: zhouchao
 * @Date: 2021/08/11 17:47
 * @Description:
 */
@Slf4j
public class ServerWatcher implements CuratorWatcher {



    @Override
    public void process(WatchedEvent watchedEvent) throws Exception {
        System.out.println("接收到CuratorWatcher事件,事件类型:" +watchedEvent.getType() + " 节点名称:" + watchedEvent.getPath());
    }
}
